package com.yuantu.judiciary.exception.enums;

import com.yuantu.judiciary.common.CodeEnum;
import lombok.Getter;
import lombok.RequiredArgsConstructor;

/**
 * 邀请码模块异常码
 *
 * @author syw
 * @since 2023-08-11
 **/
@Getter
@RequiredArgsConstructor
public enum InviteCodeExceptionEnum implements CodeEnum {
    /**
     * 邀请码相关
     */
    INVITE_CODE_NOT_EXIST(48001, "邀请码不存在"),
    INVITE_CODE_USED(48002, "您已绑定过邀请码"),
    INVITE_CODE_EXPIRED(48003, "邀请码已过期"),
    INVITE_CODE_INVALID(48004, "邀请码无效"),
    TRIAL_CODE_USED(48005, "您已使用过该推荐码"),
    OPERATOR_NOT_EXIST(48006, "供应商不存在"),

    USE_TIMES_NOT_EXIST(48007, "使用次数未设置"),

    INVITE_CODE_TYPE_ERROR(48008, "邀请码类型错误"),



    ;

    private final int code;
    private final String message;
}
